package com.example.emas_android_demo;

import android.content.Context;

import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtils {
    private final static String path = "/assets/appConfig.properties";

    public static Properties getProperties(Context context) {
        Properties properties = new Properties();
        try {
            InputStream in = PropertiesUtils.class.getResourceAsStream(path);
            properties.load(in);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return properties;
    }
}
